package com.example.myFirstWebmagic.company.entity;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)  
@SpringBootTest
public class TestCompanyCRUD {
	
	@Autowired
	private EntityManager em;
	
	
	
	@Test
	public void addCompany(){
		Company company=new Company();
		em.persist(company);
	}
}
